public class test7 {
    public static void main (String args[]){
        int data []= new int []{1,2,3,4,5,6,7,8,9};
        int temp[]=new int [data.length];
        int foot =temp.length-1;
        for (int x=0;x<data.length;x++){
            temp[foot--]=data[x];
        }
        data =temp;
        printArray(temp);
        }
        public static void  printArray(int temp[]){
            for (int num:temp){     
                System.out.print(num+",");
    
            }
            System.out.println();
        }
    
}